import { BrowserWindow } from "electron";

export function createSubWin(URL: string) {
  const subWin = new BrowserWindow({
    width: 800,
    height: 500,
    frame: false,
    // useContentSize: false,
    // parent: mainWin,
    // win是主窗口
    webPreferences: {
      contextIsolation: false,
      nodeIntegration: true,
      webSecurity: false,
    },
  });
  subWin.webContents.toggleDevTools();
  subWin?.loadURL(URL + "/dashborad");
  return subWin;
}

//order
